package Robot.Sensors;
import Robot.*;
import javaclient2.*;


public abstract class Sensor extends Device{
    private static int id=0;
    public static final int READ_MODE_WAIT=0;
    public static final int READ_MODE_NO_WAIT=1;

    int idSensor;
    private Object data;
    

    
    
    public Sensor(Robot robot, String name, int index) {
        super(robot,name, index);
        id++;
        //idSensor=id;
        idSensor=index;
    }

    public int getId() {
        return id;
    }

    
    public void setId(int val) {
        this.id = val;
    }
}
